def isleapyear(n):
    if (n%4==0 and n%100!=0) or n%400==0:
        return True
    else:
        return False
    
i=eval(input("请输入一个年份："))
print(isleapyear(i))